package com.example.dziennikposilkow;

import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class OwoceIPrzetworyOwocowe extends DziennikMainActivity {
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
        setContentView(R.layout.activity_owoce_i_przetwory_owocowe);
        
        
        
        final Button button_owoce_swieze = (Button) findViewById(R.id.buttonOwoceSwieze);
 		button_owoce_swieze.setOnClickListener(new View.OnClickListener() {
 			public void onClick(View v) {

 				String str = "OwoceSwieze"; //Data you want to send        
 				Intent intent = new Intent(OwoceIPrzetworyOwocowe.this, TabelaProdukty.class);
 				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
 				v.getContext().startActivity(intent);
 				
 			}
 			
 		});
 		
 		  final Button button_owoce_mrozone_i_suszone = (Button) findViewById(R.id.buttonOwoceMrozoneISuszone);
 	 		button_owoce_mrozone_i_suszone.setOnClickListener(new View.OnClickListener() {
 	 			public void onClick(View v) {

 	 				String str = "OwoceMrozoneISuszone"; //Data you want to send        
 	 				Intent intent = new Intent(OwoceIPrzetworyOwocowe.this, TabelaProdukty.class);
 	 				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
 	 				v.getContext().startActivity(intent);
 	 				
 	 			}
 	 			
 	 		});
 	 		
 	 		 final Button button_przetwory_owocowe = (Button) findViewById(R.id.buttonPrzetworyOwocowe);
  	 		button_przetwory_owocowe.setOnClickListener(new View.OnClickListener() {
  	 			public void onClick(View v) {

  	 				String str = "PrzetworyOwocowe"; //Data you want to send        
   	 				Intent intent = new Intent(OwoceIPrzetworyOwocowe.this, TabelaProdukty.class);
  	 				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
  	 				v.getContext().startActivity(intent);
  	 				
  	 			}
  	 			
  	 		});
 	 		
	}
}
